package com.linck.im.client.context;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: linck
 * @create: 2021-08-07
 */
public class ControllerContext {

    private static final Map<Class, Object> map = new HashMap<>();

    public static Object getController(Class clazz) {
        return map.get(clazz);
    }

    public static void putController(Class clazz, Object controller) {
        map.put(clazz, controller);
    }
}
